{extend name="PublicBase/showBase" /}

{block name="body"}
<div class="main">
    <div class="row">
        <div class="col-md-12">
            <section class="tile color transparent-black">
                <div class="tile-header">
                    <h1>{:lang('SpPzLb')}</h1>
                    <div class="controls">
                        <a href="{:url('MallConfs/showAdd')}"><i class="fa fa-plus"></i></a>
                        <a href="{:url('MallConfs/showList')}"><i class="fa fa-refresh"></i></a>
                    </div>
                </div>
                <div class="tile-widget bg-transparent-black-2">
                    <div class="row">
                        <div class="col-sm-12">
                            <form class="search-form" action="" method="get">
                                <div class="form-group col-sm-2">
                                    <select class="chosen-select chosen-transparent form-control" name="input_type">
                                        <option value="">{:lang('XtSsTjLx')}</option>
                                        <option value="confs_id" {eq name="input_type" value="confs_id"}selected{/eq}>{:lang('SpPzId')}</option>
                                        <option value="confs_name" {eq name="input_type" value="confs_name"}selected{/eq}>{:lang('SpPzBs')}</option>
                                        <option value="confs_title" {eq name="input_type" value="confs_title"}selected{/eq}>{:lang('SpPzMc')}</option>
                                    </select>
                                </div>
                                <div class="form-group col-sm-2">
                                    <input type="text" class="form-control" name="input_text" value="{$input_text}" placeholder="{:lang('XtSsTjNr')}" />
                                </div>
                                <div class="form-group col-sm-2">
                                    <select class="chosen-select chosen-transparent form-control" name="confs_group">
                                        <option value="">{:lang('SpPzFz')}</option>
                                        {volist name="Group" id="vo"}
                                            <option value="{$vo.content_value}" {eq name="config_group" value="$vo['content_value']"}selected{/eq}>{:lang('SpPzFz'.$vo['content_value'])}</option>
                                        {/volist}
                                    </select>
                                </div>
                                <div class="form-group col-sm-2">
                                    <select class="chosen-select chosen-transparent form-control" name="config_type">
                                        <option value="">{:lang('SpPzLx')}</option>
                                        <option value="1" {eq name="config_type" value="1"}selected{/eq}>{:lang('SpPzLx1')}</option>
                                        <option value="2" {eq name="config_type" value="2"}selected{/eq}>{:lang('SpPzLx2')}</option>
                                    </select>
                                </div>
                                <div class="form-group col-sm-2">
                                    <button type="button" class="btn btn-{:config('CNF_BTNCOLOR')}" style="width: 100%" id="Search" data-url="{:url('MallConfs/showList')}">{:lang('XtAnSs')}</button>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
                <div class="table-responsive">
                    <div class="tile-body nopadding">
                        <table class="table table-bordered table-custom">
                            <thead>
                            <tr>
                                <th>
                                    <div class="checkbox check-transparent">
                                        <input type="checkbox" id="allchck">
                                        <label for="allchck"></label>
                                    </div>
                                </th>
                                <th>{:lang('SpPzId')}</th>
                                <th>{:lang('SpPzBs')}</th>
                                <th>{:lang('SpPzMc')}</th>
                                <th>{:lang('SpPzLx')}</th>
                                <th>{:lang('SpPzFz')}</th>
                                <th>{:lang('SpPzPx')}</th>
                                <th>{:lang('XtLbGdCz')}</th>
                            </tr>
                            </thead>
                            <tbody>
                                {notempty name="Lists"}
                                    {volist name="Lists" id="vo" key="key"}
                                        <tr>
                                            <td>
                                                <div class="checkbox check-transparent">
                                                    <input type="checkbox" value="{$vo.confs_id}" id="chck{$key}">
                                                    <label for="chck{$key}"></label>
                                                </div>
                                            </td>
                                            <td>{$vo.confs_id}</td>
                                            <td>{$vo.confs_name}</td>
                                            <td>{$vo.confs_title}</td>
                                            <td>{:lang('SpPzLx'.$vo['confs_type'])}</td>
                                            <td>{:lang('SpPzFz'.$vo['confs_group'])}</td>
                                            <td>{$vo.confs_sort}</td>
                                            <td class="actions">
                                                <a class="edit" href="{:url('MallConfs/showEdit',array('id'=>$vo['confs_id']))}">
                                                    <i class="fa fa-pencil fa-lg fa-fw"></i>
                                                </a>
                                                <a class="delete ajax-handle" href="javascript:void(0);" data-url="{:url('MallConfs/showDel')}" data-ids="{$vo.confs_id}">
                                                    <i class="fa fa-trash fa-lg fa-fw"></i>
                                                </a>
                                            </td>
                                        </tr>
                                    {/volist}
                                {else/}
                                    <tr>
                                        <td colspan="20">{:lang('XtLbZwSj')}</td>
                                    </tr>
                                {/notempty}
                            </tbody>
                        </table>
                    </div>
                    <div class="col-sm-12">&nbsp;</div>
                </div>
                <div class="tile-footer bg-transparent-black-2 rounded-bottom-corners">
                    <div class="row">
                        <div class="col-sm-12 text-center">
                            {notempty name="Lists"}
                                {$Lists->render()}
                            {/notempty}
                        </div>
                    </div>
                </div>
            </section>
        </div>
    </div>
</div>
{/block}

{block name="script"}
    <script>
        $(function(){
            
        })
    </script>
{/block}